//
//  BKCMBuyCarMainCell.h
//  bestkeep
//
//  Created by 毛韶谦 on 2017/1/16.
//  Copyright © 2017年 utouu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BKCMGoodsDetailModel.h"
#import "BKCMCellDetailView.h"
#import "BKCMCellAmountView.h"
#import "BKCMBuyCarSectionView.h"
#import "BKCMFooterView.h"

@class BKCMBuyCarMainCell;
@protocol cellButtonDetegate <NSObject>

- (void)updataCellButtonModel:(BKCMGoodsDetailModel *)sender tableViewCell:(BKCMBuyCarMainCell*)cell;

- (void)updataCellContentData:(BKCMGoodsDetailModel *)shoppingCarList tableViewCell:(BKCMBuyCarMainCell *)cell;

@end

@interface BKCMBuyCarMainCell : UITableViewCell

@property (nonatomic, assign) BOOL istra_DetailPrice;
@property (nonatomic, strong) UIView *mainView;
@property (nonatomic, strong) UIView *button1_View;
@property (nonatomic, strong) UIButton *bigButton1; //cell的点击按钮；
@property (nonatomic, strong) UIButton *button1;    //cell 点击按钮
@property (nonatomic, assign) NSInteger* clickIndex;  //物品图片
@property (nonatomic, strong) UIImageView* imageView1;  //物品图片
@property (nonatomic, strong) BKCMCellAmountView* addView;    //编辑状态下得View  有加减号
@property (nonatomic, strong) BKCMCellDetailView* detailView;  //物品详情View
//@property (nonatomic, strong) detailPriceView *detailPriceView;  //价格详情
@property (nonatomic, strong) UIView *detailPriceView;  //价格详情
@property (nonatomic,  copy ) BKCMGoodsDetailModel *cellList;   //cell 点击按钮
//@property (nonatomic, strong) sectionFooterView* sectionFooterView;
@property (nonatomic, strong) BKCMFooterView* footerAccountView;   //结算
@property (nonatomic, strong) BKCMBuyCarSectionView* buyCarSectionView;  //每一组的头部
@property (nonatomic,  weak ) id<cellButtonDetegate> cellBtnDetegate;
@property (nonatomic, strong) UILabel *uselessTag;//失效view
@property (nonatomic,strong) UIView *assistView;
@property (nonatomic, strong) NSString *tempStr; //用于处理商品失效时的UI处理；

- (void)updateCellWithModel:(BKCMGoodsDetailModel *)model;
//- (void)SectionFooterView:(BKCMFooterView*)sectionFooterView andModel:(BKCMRecommendGoodsModel *) footerModel;

/**
 *  处理Cotroller中的事件
 *
 *  @param buyCarDetailCell 注册的cell
 *  @param shopList1        所需的数据
 */
- (void)dealBuyCarDetailCell:(BKCMBuyCarMainCell *)buyCarDetailCell superShopping:(BKCMRecommendGoodsModel *)shopList1 leftButton:(UIButton *)leftButton indexPath:(NSIndexPath *)indexPath;

@end
